function addToList(item,list){
 return list.push(item);
}
var result=addToList("apple",["banana"]);
console.log(result); 
//2